home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / Localization Tools / Localization using ResEdit™ 3.0 / Plugin for ODF 1 / Plugin for ODF 1.rsrc / EDL_131_Resource.FWpr < prev    next >
Encoding:
Text File  |  1996-12-11  |  1.6 KB  |  54 lines

  1. //========================================================================================
  2. //
  3. // Exploder description for 'FWpr' (ODF part info) resources
  4. //
  5. // Author:     Steve Crutchfield
  6. //
  7. // Copyright:  (c) 1996 by Apple Computer, Inc., all rights reserved.
  8. //
  9. //========================================================================================
  10.  
  11. //----------------------------------------------------------------------------
  12. // Utility definition.
  13. //----------------------------------------------------------------------------
  14.  
  15. Define(FW_RStringData)
  16. {
  17.     Word(fScriptCode);
  18.     Word(fLanguageCode);
  19.     String(fString, LengthWord);
  20. }
  21.  
  22. //----------------------------------------------------------------------------
  23. // Main definition begins here.
  24. //----------------------------------------------------------------------------
  25.  
  26. Word(fViewAsIconID);
  27.  
  28. // Un-comment the next two lines if you're editing
  29. // an ODF 2 part.
  30.         
  31. //Word(fMenuBarID);
  32. //Word(fDocumentWindowID);
  33.  
  34. // Using a list here is a workaround.  A better solution would
  35. // be to use an Element(); however, there is no structure in
  36. // VDL which causes all identifiers within its scope to
  37. // apply to a sub-element rather than the containing element.
  38. // DynamicVList performs this task for a list, so we use a
  39. // single-element list here.  This is needed because both
  40. // StringData fields in the resource contain script and language
  41. // code fields, which must have the same name in each case so
  42. // that a single VDL named statement can be used to generate all
  43. // script/language code popup menus.
  44.  
  45. List(fPartName, String, 1)
  46. {
  47.     Call(FW_RStringData);
  48. }
  49.  
  50. List(fPartKind, String, 1)
  51. {
  52.     Call(FW_RStringData);
  53. }
  54.